define(function(require,exports,module){
    require("jquery");
    var dtPicker = new mui.DtPicker({
        type: "datetime",
        "customData": {
            "y": [
                { value: "2017", text: "2017" },
                { value: "2018", text: "2018" },
                { value: "2019", text: "2019" },
                { value: "2020", text: "2020" }
            ]
        }
    });
    $(".starttime").on("tap",function(){
        dtPicker.show(function(selectItems){
            $(".starttime").text(selectItems.text)
            console.log(selectItems)
        });
    })
    $(".next").on("tap",function(){
        $(".onece-create-one").removeClass("on");
        $(".onece-create-two").addClass("on")
    })
    $(".return").on("tap",function(){
        $(".onece-create-two").removeClass("on");
        $(".onece-create-one").addClass("on")
    })
    $(".onece-create-two .mui-table-view .mui-table-view-cell").on("tap",function(){
        if($(this).hasClass("active")){

        }else{
            $(".onece-create-two .mui-table-view .mui-table-view-cell.active").removeClass("active");
            $(this).addClass("active");
            $(".onece_create-detail>div.active").removeClass("active")
            $(".onece-create-two .mui-table-view .mui-table-view-cell").each(function(i,e){
                if($(e).hasClass("active")){
                    $(".onece_create-detail>div").eq(i).addClass("active");
                }
            })
        }

    })
})
